package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.pojo.User;

import java.util.List;

/**
 * 用户服务接口
 */
public interface UserService {
    public User findByUsername(String username);

    public List<User> findHealthManager();

    public PageResult pageQuery(Integer currentPage, Integer pageSize, String queryString);
    public void add(User user, Integer[] roleIds);
    public User findById(int id);

    List<Integer> findRoleIdsByUserId(int id);

    void edit(User user, Integer[] roleIds);

    void delete(Integer id);

}
